package com.hoshiicloud.saleorder.param;

import com.alibaba.fastjson.annotation.JSONField;
import com.hoshiicloud.common.query.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
* <p>
* 查询优惠抵现单参数
* </p>
* @author zhangshuhu
* @since 2019-06-03
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="查询优惠抵现单", description="查询优惠抵现单")
public class CouponListQueryParam extends PageParam {


    @ApiModelProperty(value = "子订单ID")
    private Long subId;

    @ApiModelProperty(value = "抵现单流水号")
    private String payOrderNo;

    @ApiModelProperty(value = "1-消费 2-退款")
    private Integer payType;

    @ApiModelProperty(value = "支付日期时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime payTime;

    @ApiModelProperty(value = "等额人民币")
    private BigDecimal amount;

    @ApiModelProperty(value = "0-未付款 1-已付款 -1 建议异常")
    private Integer status;

    @ApiModelProperty(value = "关联单号（销售主单/退款单号")
    private String refNo;

    @ApiModelProperty(value = "是否删除")
    private Integer deleted;

    @ApiModelProperty(value = "更新人")
    private String updatedBy;
}
